//
//  YUScrollBarCell.swift
//  tuniu
//
//  Created by 于世民 on 2019/8/16.
//  Copyright © 2019 于世民. All rights reserved.
//

import UIKit

class YUScrollBarCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        initUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    lazy var imageView: UIImageView = {
        let image = UIImageView(frame: CGRect.zero)
        return image
    }()
}

extension YUScrollBarCell {
    
    private func initUI() {
        
        contentView.addSubview(imageView)
        
        imageView.snp.makeConstraints { (make) in
            make.edges.equalTo(self)
        }
    }

}
